<?php
// Note: This file is included from the library/Vanilla/Vanilla.Control.Foot.php class.

echo '</div>
<a id="pgbottom" name="pgbottom">&nbsp;</a>
   <div id="powered_by">';
echo $this->Context->GetDefinition('PanelFooter');
echo '
 </div>
 </div>
</div>';

$AllowDebugInfo = 0;
$session = Session::getInstance();
if ($session->User && $session->User->Permission('PERMISSION_ALLOW_DEBUG_INFO')) {
    $AllowDebugInfo = 1;
}
if ($this->Context->Mode == MODE_DEBUG && $AllowDebugInfo) {
   echo '<div class="DebugBar" id="DebugBar">
   <b>Debug Options</b> | Resize: <a href="javascript:window.resizeTo(800,600);">800x600</a>, <a href="javascript:window.resizeTo(1024, 768);">1024x768</a> | <a href="'
   ."javascript:HideElement('DebugBar');"
   .'">Hide This</a>';
   echo $this->Context->SqlCollector->GetMessages();
   echo '</div>';
}